package com.baor.service.impl;

import com.baor.dao.StudentDao;
import com.baor.domain.StuVo;
import com.baor.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UploadServiceImpl implements UploadService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public boolean addDetailed(StuVo detailed) {
        boolean flag = false;
        try {
            studentDao.addStu(detailed);
            flag = true;
        }catch (Exception e){
            e.printStackTrace();
        }
        return flag;
    }
}
